package com.maochang.top.service.impl;


import com.maochang.top.bean.Account;
import com.maochang.top.dao.AccountDao;
import com.maochang.top.service.AccountService;

import java.util.List;

public class AccountServiceImpl implements AccountService {

    private AccountDao accountDao;

    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }

    @Override
    public void save(Account tAccount) {
        accountDao.save(tAccount);
    }

    @Override
    public void update(Account tAccount) {
        accountDao.update(tAccount);
    }

    @Override
    public void delete(Integer id) {
        accountDao.delete(id);
    }

    @Override
    public Account findById(Integer id) {
        return accountDao.findById(id);
    }

    @Override
    public List<Account> findAll() {
        return accountDao.findAll();
    }

}
